package com.ruicar.afs.cloud.common.modules.afscorebusiness.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description 留言类型
 * @Author Peng_Jinbo
 * @Date 2020/05/30 14:54
 */
@Getter
@AllArgsConstructor
public enum RemindTypeEnum {
    INNER("reasonInner", "内部留言"),
    REJECT("reasonReject", "问题件退回"),
    ADD("reasonAdd", "过程中补件"),
    UNDONE("reasonUndone", "电核未完成");

    String value;
    String name;

    public final static String getNameByValue(String value) {
        String name = "";
        for (RemindTypeEnum remindTypeEnum : values()) {
            if (remindTypeEnum.value.equals(value)) {
                name = remindTypeEnum.name;
                break;
            }
        }
        return name;
    }
}
